<template>
  <div class="goods-list">
    <goods-item v-for="item in goodslist" :key="item.id" :goodsInfo="item" />
  </div>
</template>

<script>
import goodsItem from './GoodsItem.vue'
export default {
  components: { goodsItem },
  name: 'GoodsList',
  props: {
    goodslist: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.goods-list {
  font-size: 0.12rem;
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
</style>